/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


$(document).ready(function() {
    var table = $('#example').dataTable({
           "lengthMenu": [ 5,10],
        "oLanguage": {
         
            "sLengthMenu": "_MENU_ Itens por página",
            "sZeroRecords": "Nenhum registro encontrado",
            "sInfo": "Item _START_ até _END_  de  _TOTAL_ iten(s)",
            "sInfoEmpty": "Showing 0 to 0 of 0 records",
            "sInfoFiltered": "(Filtrado de _MAX_ iten(s))",
            "sSearch": "Buscar:",
            "oPaginate": {
                "sFirst": "Erster",
                "sPrevious": "Anterior",
                "sNext": "Próxima",
                "sLast": "Letzter"
            }
        }
    });
    var tableTools = new $.fn.dataTable.TableTools(table, {
        "sSwfPath": "resources/swf/copy_csv_xls_pdf.swf",
        "aButtons": [
            {
                "sExtends": "xls",
                "sToolTip": "Exportar para Excel"
            }
            ,
            {
                "sExtends": "pdf",
                "sToolTip": "Exportar para PDF"
            }
           
            

        ]



    });

    $(tableTools.fnContainer()).insertAfter('div#example_wrapper');
});


